package com.bd.scm.domain.models.door;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@TableName("view_bd_doorDefinition")
public class DoorDefinition extends BaseRowModel implements Serializable {
    private static final long serialVersionUID = 1L;
    @ExcelProperty(value = "门名称" ,index = 1)
    private String doorName;
    @ExcelProperty(value = "设备ip" ,index = 4)
    private String ip;
//允许访客访问
    private Integer visFlg;

    @TableField("Gate_bh")
    private String gateBh;
    @ExcelProperty(value = "序列号" ,index = 5)
    private String devId;
    @ExcelProperty(value = "设备名称" ,index = 2)
    private String mc;
//允许请假出入
    private Integer qjFlg;
    @ExcelProperty(value = "场所名称" ,index = 0)
    private String depName;
    @ExcelProperty(value = "门锁接口" ,index = 3)
    private Integer devOrder;
    @ExcelProperty(value = "设备类型" ,index = 6)
    private Integer ert;
    //刷卡开门
    private Integer cType1;
    //刷卡+密码开门
    private Integer cType2;
    //常开规则
    private Integer mjgz3;
    //常闭规则
    private Integer mjgz4;
    //锁类别
    @TableField("d_lock")
    private Integer dLock;
    //磁力锁开门延迟时间
    @TableField("D_delay")
    private Integer dDelay;
    //未关门报警时间
    private Integer openAlarm;
    private String devSerial;
    //允许访客访问boolean值
    @ExcelProperty(value = "允许访客访问" ,index = 7)
    private Boolean allowVisit;
    //允许请假出入boolean值
    @ExcelProperty(value = "允许请假出入" ,index = 8)
    private Boolean allowQj;
    //刷卡开门
    private Integer inType;
    //刷卡+密码开门
    private Integer outType;
    //设备类型
    private String doorType;
}
